export default {
    username: [ { required: true, message: '请输入姓名', trigger: 'blur' } ],
    password: [ { required: true, message: '请输入密码', trigger: 'blur' } ],
    phone: [ { required: true, message: '请输入手机号', trigger: 'blur' }, { validator: (rule, value, callback) => {
        if (/^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/.test(value)) {
            return callback()
        }
        return callback(new Error('手机号不符合规则'))
    } } ],
    roleId: [ { required: true, message: '请选择角色', trigger: 'blur' } ]
}
